﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.ContentManagement.Drivers;
using Orchard;
using Orchard.Environment.Extensions;
using Contrib.Mod.AccountWidgets.Models;

namespace Contrib.Mod.AccountWidgets.Drivers
{
    [OrchardFeature("Contrib.Mod.AccountWidgets.LoginWidgets")]
    public class ModalLoginWidgetPartDriver : ContentPartDriver<ModalLoginWidgetPart>
    {
        private readonly IOrchardServices _orchardServices;

        public ModalLoginWidgetPartDriver(IOrchardServices orchardServices)
        {
            _orchardServices = orchardServices;
        }

        protected override DriverResult Display(ModalLoginWidgetPart part, string displayType, dynamic shapeHelper)
        {
            return ContentShape("ModalLogOn", () => shapeHelper.ModalLogOn());
        }
    }
}